MsgN("\n----------------------------------------")
MsgN("-- MadDog's Prop Protection Loading")

//server vars
CreateConVar("maddogs_prop_protection", "0")						//Add server convar to Enable or Disable

--holds the entire Resource System
MDPP = {}
MDPP.Version = "1.00"

MDPP.IsEnabled = function()
	--MD is required
	if !MD || !MD.IsEnabled() then return false end

	if tonumber(GetConVarNumber("maddogs_prop_protection")) == 1 then
		return true
	else
		return false
	end
end

--server side calls
if (SERVER) then
	--add all files required by client
 	AddCSLuaFile("autorun/maddogs_prop_protection.lua")

	--load all server files
	include( "autorun/maddogs_prop_protection/mdpp_server.lua" )
end

--load all client files
IncludeClientFile( "autorun/maddogs_prop_protection/mdpp_client.lua" )

MsgN("----------------------------------------\n")